import request from '@/utils/request'

// 查询圈子热搜推送设置列表
export function listPushSetting(query) {
  return request({
    url: '/pushSetting/pushSetting/list',
    method: 'get',
    params: query
  })
}

// 查询圈子热搜推送设置详细
export function getPushSetting(id) {
  return request({
    url: '/pushSetting/pushSetting/' + id,
    method: 'get'
  })
}

// 新增圈子热搜推送设置
export function addPushSetting(data) {
  return request({
    url: '/pushSetting/pushSetting',
    method: 'post',
    data: data
  })
}

// 修改圈子热搜推送设置
export function updatePushSetting(data) {
  return request({
    url: '/pushSetting/pushSetting',
    method: 'put',
    data: data
  })
}

// 删除圈子热搜推送设置
export function delPushSetting(id) {
  return request({
    url: '/pushSetting/pushSetting/' + id,
    method: 'delete'
  })
}

// 立即推送热搜内容到指定圈子
export function pushNow(id) {
  return request({
    url: '/pushSetting/pushSetting/pushNow/' + id,
    method: 'post'
  })
}